package com.ali.juejin.services

import com.ali.juejin.bean.v1.ArticleDetailBean
import com.ali.juejin.bean.v1.ItemInfo
import com.ali.juejin.bean.v1.article.comment.CommentBean
import okhttp3.RequestBody
import retrofit2.http.*

interface ArticleDetailServices {
    @POST("article/detail")
    suspend fun getDetailInfo(
        @Body info: RequestBody
    ):ArticleDetailBean<ItemInfo>

    @POST("article/recommend_article_detail_feed")
    suspend fun getRelatedEntry(
        @Body info: RequestBody
    ):ArticleDetailBean<ArrayList<ItemInfo>>

    @POST("comment/list")
    suspend fun getCommentList(
        @Body info: RequestBody
    ):CommentBean
}